package com.sg.dto.biz.bff.res;


import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @desc BffOrgDto
 * @使用场景
 */
@Data
public class BffOrgDto implements Serializable {

    /**
     * 组织ID:
     */
    @ApiModelProperty("组织ID")
    private String organizationId;

    /**
     * 组织编号:
     */
    @ApiModelProperty("组织编号")
    private String organizationNumber;

    /**
     * 冗余组织名称:
     */
    @ApiModelProperty("组织名称")
    private String organizationName;

    /**
     * 组织标识:
     */
    @ApiModelProperty("组织标识")
    private String organizationCode;

    /**
     * 是否最高组织:
     */
    @ApiModelProperty("是否最高组织")
    private String isHighOrg;

    /**
     * 空间组织架构模式:
     */
    @ApiModelProperty("空间组织架构模式")
    private String orgStructureModel;

    /**
     * 是否开启系统对接:
     */
    @ApiModelProperty("是否开启系统对接")
    private String isIntergration;

    /**
     * 是否允许导入:
     */
    @ApiModelProperty("是否允许导入")
    private String isAllowImport;

    /**
     * 是否启用流程审批:
     */
    @ApiModelProperty("是否启用流程审批")
    private String isOpenApprovalProcess;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BffOrgDto that = (BffOrgDto) o;
        return organizationId == that.organizationId && organizationNumber == that.organizationNumber && organizationName == that.organizationName && organizationCode == that.organizationCode && isHighOrg == that.isHighOrg && orgStructureModel == that.orgStructureModel && isIntergration == that.isIntergration && isAllowImport == that.isAllowImport && isOpenApprovalProcess == that.isOpenApprovalProcess;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), organizationId, organizationNumber, organizationName, organizationCode, isHighOrg, orgStructureModel, isIntergration, isAllowImport, isOpenApprovalProcess);
    }
}
